<?php
$ci =&get_instance();
?>
<div class="wrap-login background-color-blue">
    <div class="login">
        <div class="login-logo fl">
            <i class="dashicons-admin-users"></i>
        </div>
        <div class="login-box fr">
            <form onsubmit="Login(this);return false;" method="post" action="<?=((isset($action))?$action:'')?>">
                <div class="login-title"><a href="#" onclick="return false;"><h2><?=$ci->lang->line('form_submit_login');?></h2></a></div>
                <div class="login-input" style="display: block">
                    <noscript>
                        <div class="message">
                            <i id="Login-Message"><?=((!empty($message))?$message:'')?></i>
                        </div>
                    </noscript>
                    <div>
                        <input id="username" type="text" name="username" value="" placeholder="<?=$ci->lang->line('form_label_username');?>" autofocus="true" />
                    </div>
                    <div>
                        <input id="password" type="password" name="password" value="" placeholder="<?=$ci->lang->line('form_label_password');?>" />
                        <a class="show-pass" onmousedown="ShowPass('#password');return false;" onmouseup="HidePass('#password');return false;" onmouseout="HidePass('#password');return false;"></a>
                        <input class="background-color-blue" type="submit" name="submit" value="<?=$ci->lang->line('form_submit_login');?>" />
                    </div>
                    <input type="hidden" name="<?=MY_AdminController::$_TokenName?>" value="<?=MY_AdminController::$_TokenValue?>">
                </div>
                <div class="login-loading" style="display: none">
                    <img src="<?=Administrator::$_ImagePath?>/login-loading.gif">
                    <span><?=$ci->lang->line('text_please_wait');?></span>
                </div>
                <div class="login-fail" style="display: none">
                    <div class="message">
                        <i class="login-message"><?=((!empty($message))?$message:'')?></i>
                    </div>
                    <button class="background-color-blue" type="button" onclick="BackToLogin();return false;"><?=$ci->lang->line('text_accept');?></button>
                </div>
            </form>
        </div>
        <div class="login-box-fail float-right">

        </div>
        <div class="clear"></div>
    </div>
</div>
